import type { TableColumn } from "@/components/DynamicTable/types";

// 互联网报备表格列配置
export const internetReportTableColumns: TableColumn[] = [
  {
    prop: "serial_number",
    label: "序号",
    width: 100,
  },
  {
    prop: "asset_responsible_person",
    label: "资产负责人",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "responsible_contact",
    label: "负责人联系方式",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_company",
    label: "资产所属公司",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_department",
    label: "资产所属部门",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_type",
    label: "资产类型",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_ip",
    label: "资产IP",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "start_port",
    label: "起始端口",
    width: 100,
  },
  {
    prop: "end_port",
    label: "结束端口",
    width: 100,
  },
  {
    prop: "service_type",
    label: "服务类型",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "has_web_interface",
    label: "是否有WEB界面",
    width: 120,
    slot: "has_web_interface",
  },
  {
    prop: "web_interface_url",
    label: "WEB界面URL",
    width: 200,
    showOverflowTooltip: true,
  },
  {
    prop: "port_responsible_person",
    label: "端口负责人",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "port_responsible_contact",
    label: "端口负责人电话",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "port_responsible_department",
    label: "端口负责人部门",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "is_cross_department",
    label: "是否跨部门资产",
    width: 120,
    slot: "is_cross_department",
  },
  {
    prop: "asset_domain",
    label: "资产域名",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_name",
    label: "资产名称",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_record_info",
    label: "资产备案信息",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "asset_device_type",
    label: "资产设备类型",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "device_version",
    label: "设备版本号",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "manufacturer_info",
    label: "厂商信息",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "operating_system",
    label: "操作系统",
    width: 120,
    showOverflowTooltip: true,
  },
  {
    prop: "os_version",
    label: "操作系统版本",
    width: 150,
    showOverflowTooltip: true,
  },
  {
    prop: "software_middleware_info",
    label: "软件/中间件信息",
    width: 200,
    showOverflowTooltip: true,
  },
  {
    prop: "remarks",
    label: "备注",
    width: 200,
    showOverflowTooltip: true,
  },
  {
    prop: "actions",
    label: "操作",
    width: 100,
    fixed: "right",
    slot: "actions",
  },
];
